package com.wtf.dsp.admin.core.config;

import com.wtf.dsp.admin.mapper.*;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;

/**
 * ClassName: WtfDspConfig
 * Description:
 * date: 2024/3/13 14:41
 *
 * @author linhuanyou
 * @version 1.0
 */
@Configuration
public class WtfDspAdminConfig implements InitializingBean {

    private static WtfDspAdminConfig adminConfig = null;

    public static WtfDspAdminConfig getAdminConfig() {
        return adminConfig;
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        adminConfig = this;
    }

    @Resource
    private WtfDspCodeTemplateMapper wtfDspCodeTemplateMapper;
    @Resource
    private WtfDspNamespaceMapper wtfDspNamespaceMapper;
    @Resource
    private WtfDspDatasourceMapper wtfDspDatasourceMapper;
    @Resource
    private WtfDspMapperMapper wtfDspMapperMapper;
    @Resource
    private WtfDspSqlMapper wtfDspSqlMapper;

    public WtfDspCodeTemplateMapper getWtfDspCodeTemplateMapper() {
        return wtfDspCodeTemplateMapper;
    }

    public WtfDspNamespaceMapper getWtfDspNamespaceMapper() {
        return wtfDspNamespaceMapper;
    }

    public WtfDspDatasourceMapper getWtfDspDatasourceMapper() {
        return wtfDspDatasourceMapper;
    }

    public WtfDspMapperMapper getWtfDspMapperMapper() {
        return wtfDspMapperMapper;
    }

    public WtfDspSqlMapper getWtfDspSqlMapper() {
        return wtfDspSqlMapper;
    }

}
